public class Goods {
    private String name;
    private String identifier;
    private int num;
    public Goods(){

    }
    public Goods(String name,String identifier,int num){
        this.name = name;
        this.identifier = identifier;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public String getIdentifier() {
        return identifier;
    }

    public int getNum() {
        return num;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public  void  show(){
        System.out.println("货物名称；"+this.name+",货物编号；"+this.identifier+",货物数量；"+num);
    }

    @Override
    public String toString() {
        return "Goods{" +
                "name='" + name + '\'' +
                ", identifier='" + identifier + '\'' +
                ", num=" + num +
                '}';
    }
}
